import { ref } from "vue"
import store from "@/store"
import { defineStore } from "pinia"
export const useCommonStore = defineStore(
  "common",
  () => {
    const DOWNLOADWORD = ref<any>("ZGM4ODguLg==")
    const BASEURL = ref<any>("https://hangzhouzhuichuang.com")

    /**actions */
    {
      /** */
    }
    /**actions END */
    return {
      DOWNLOADWORD,
      BASEURL

    }
  },
  {
    persist: {
      enabled: true,
      strategies: [
        {
          storage: localStorage
          // paths: ["jobListStore", "authListStore"] //指定要长久化的字段
        }
      ]
    }
  }
)
/** 在 setup 外使用 */
export function useCommonStoreHook() {
  return useCommonStore(store)
}
